package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontvo.CourseFrontVo;
import com.atguigu.eduservice.entity.frontvo.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CourseInfoVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 董万均
 * @since 2020-10-25
 */
public interface EduCourseService extends IService<EduCourse> {
    //添加课程信息
    String saveCourseInfo(CourseInfoVo courseInfoVo);
    //获取课程信息
    CourseInfoVo getCourseInfoById(String courseId);
    //修改课程信息
    void updateCourseInfo(CourseInfoVo courseInfoVo);
    //获取课程发布信息
    CoursePublishVo getPublishInfo(String courseId);
    //删除课程
    void removeCourseById(String courseId);

    List<EduCourse> selectHotCourse();

    Map<String, Object> selectFrontCourseList(Page<EduCourse> coursePage, CourseFrontVo courseFrontVo);

    //查询所有的课程信息
    CourseWebVo getFrontCourseInfo(String courseId);
}
